Public Class frmQuanLyDanhMucDiaPhuong

    Private Sub TblQuocGiaBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TblQuocGiaBindingNavigatorSaveItem.Click
        Me.Validate()
        Me.TblQuocGiaBindingSource.EndEdit()
        Me.TblQuocGiaTableAdapter.Update(Me.CSDLSVDataSet.tblQuocGia)

    End Sub

    Private Sub frmQuanLyDanhMucDiaPhuong_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'TODO: This line of code loads data into the 'CSDLSVDataSet.tblQuocTich' table. You can move, or remove it, as needed.
        Me.TblQuocTichTableAdapter.Fill(Me.CSDLSVDataSet.tblQuocTich)
        'TODO: This line of code loads data into the 'CSDLSVDataSet.tblHuyen' table. You can move, or remove it, as needed.
        Me.TblHuyenTableAdapter.Fill(Me.CSDLSVDataSet.tblHuyen)
        'TODO: This line of code loads data into the 'CSDLSVDataSet.tblTinh' table. You can move, or remove it, as needed.
        Me.TblTinhTableAdapter.Fill(Me.CSDLSVDataSet.tblTinh)
        'TODO: This line of code loads data into the 'CSDLSVDataSet.tblTinh' table. You can move, or remove it, as needed.
        Me.TblTinhTableAdapter.Fill(Me.CSDLSVDataSet.tblTinh)
        'TODO: This line of code loads data into the 'CSDLSVDataSet.tblQuocGia' table. You can move, or remove it, as needed.
        Me.TblQuocGiaTableAdapter.Fill(Me.CSDLSVDataSet.tblQuocGia)

    End Sub

    Private Sub TblTinhBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TblTinhBindingNavigatorSaveItem.Click
        Me.Validate()
        Me.TblTinhBindingSource.EndEdit()
        Me.TblTinhTableAdapter.Update(Me.CSDLSVDataSet.tblTinh)
    End Sub

    Private Sub TblHuyenBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TblHuyenBindingNavigatorSaveItem.Click
        Me.Validate()
        Me.TblHuyenBindingSource.EndEdit()
        Me.TblHuyenTableAdapter.Update(Me.CSDLSVDataSet.tblHuyen)
    End Sub

    Private Sub TblQuocTichBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TblQuocTichBindingNavigatorSaveItem.Click
        Me.Validate()
        Me.TblQuocTichBindingSource.EndEdit()
        Me.TblQuocTichTableAdapter.Update(Me.CSDLSVDataSet.tblQuocTich)
    End Sub


    Private Sub FillByTenOrMaTinhToolStripButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FillByTenOrMaTinhToolStripButton.Click
        Try
            Me.TblTinhTableAdapter.FillByTenOrMaTinh(Me.CSDLSVDataSet.tblTinh, TenOrMaTinhToolStripTextBox.Text, TenOrMaTinhToolStripTextBox.Text)
        Catch ex As System.Exception
            System.Windows.Forms.MessageBox.Show(ex.Message)
        End Try
    End Sub
End Class